package com.wx_shop.api.domain.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperProShopcart implements Serializable {
    private Integer id;

    /**
     * 用户ID
     */
    private Integer uid;

    /**
     * 商品ID
     */
    private Integer proId;

    /**
     * 购买数量
     */
    private Integer num;

    /**
     * 价格
     */
    private String price;

    /**
     * 商品属性ID
     */
    private String params;

    /**
     * 属性值内容文字
     */
    private String paramsTxt;

    /**
     * pro,gift
     */
    private String type;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 用户ID
     */
    public Integer getUid() {
        return uid;
    }

    /**
     * 用户ID
     */
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    /**
     * 商品ID
     */
    public Integer getProId() {
        return proId;
    }

    /**
     * 商品ID
     */
    public void setProId(Integer proId) {
        this.proId = proId;
    }

    /**
     * 购买数量
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 购买数量
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 价格
     */
    public String getPrice() {
        return price;
    }

    /**
     * 价格
     */
    public void setPrice(String price) {
        this.price = price;
    }

    /**
     * 商品属性ID
     */
    public String getParams() {
        return params;
    }

    /**
     * 商品属性ID
     */
    public void setParams(String params) {
        this.params = params;
    }

    /**
     * 属性值内容文字
     */
    public String getParamsTxt() {
        return paramsTxt;
    }

    /**
     * 属性值内容文字
     */
    public void setParamsTxt(String paramsTxt) {
        this.paramsTxt = paramsTxt;
    }

    /**
     * pro,gift
     */
    public String getType() {
        return type;
    }

    /**
     * pro,gift
     */
    public void setType(String type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", uid=").append(uid);
        sb.append(", proId=").append(proId);
        sb.append(", num=").append(num);
        sb.append(", price=").append(price);
        sb.append(", params=").append(params);
        sb.append(", paramsTxt=").append(paramsTxt);
        sb.append(", type=").append(type);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperProShopcart other = (SuperProShopcart) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getProId() == null ? other.getProId() == null : this.getProId().equals(other.getProId()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getParams() == null ? other.getParams() == null : this.getParams().equals(other.getParams()))
            && (this.getParamsTxt() == null ? other.getParamsTxt() == null : this.getParamsTxt().equals(other.getParamsTxt()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getProId() == null) ? 0 : getProId().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getParams() == null) ? 0 : getParams().hashCode());
        result = prime * result + ((getParamsTxt() == null) ? 0 : getParamsTxt().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}